<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<form:form modelAttribute="registry">
    <%--<form:hidden path="id"/>--%>
    <table>
        <tr>
            <td>
                Номер автомобиля:
            </td>
            <td>
                <form:input path="number"/>
                    <%--<form:errors path="number"/>--%>
            </td>
            <td>
                <input value="Въехал" type="submit">
            </td>
            <td>
                <input value="Выехал" type="submit">
            </td>
        </tr>

        <td>
            <tr>
                <td>Дата въезда:</td>
                <td>
                    <form:input path="dateIn"/>
                    <form:errors path="dateIn"/>
                </td>
                <td>Охранник:</td>
                <td>
                        <%--TODO AJAX populate guardians choice--%>
                    <form:select path=""/>
                </td>
            </tr>
            <tr>
                <td>Дата выезда:</td>
                <td>
                    <form:input path="dateOut"/>
                    <form:errors path="dateOut"/>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input value="Ввести данные" type="submit"></td>
            </tr>
        </td>
        </tr>
        <tr>

                <%--<form:input path="birth"/><form:errors path="birth" />--%>
        </tr>

    </table>
</form:form>


<c:forEach begin="1" end="10" step="1">
<c:out value="${currentDate}"/>
</c:forEach>